/*
 * Android Runner is a multiplayer GPS game fully written by Xurxo Mendez Perez
 * 
 * Copyright (C) 2009 Xurxo Mendez Perez
 *   
 * This file is part of Android Runner.
 * 
 * Android Runner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Android Runner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android Runner.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.sonxurxo.androidrunner.model.service.game.to;

import es.sonxurxo.androidrunner.model.persistence.player.entity.Player;

/**
 * 
 * @author "Xurxo Mendez Perez"
 *
 */
public class InGamePlayerInfoTO {

	private String login;
	private int points;
	private int numberOfItems;
	private int latitude;
	private int longitude;
	private int imageId;

	public InGamePlayerInfoTO() {}

	public InGamePlayerInfoTO(Player player) {
		this.login = player.getUserData().getLogin();
		this.points = player.getPoints();
		this.numberOfItems = player.getItemsIHave().size();
		this.latitude = player.getLatitude();
		this.longitude = player.getLongitude();
		this.imageId = player.getImageId();
	}
	
	public InGamePlayerInfoTO(String login, int points, int numberOfItems,
			int latitude, int longitude, int imageId) {
		super();
		this.login = login;
		this.points = points;
		this.numberOfItems = numberOfItems;
		this.latitude = latitude;
		this.longitude = longitude;
		this.imageId = imageId;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public int getNumberOfItems() {
		return numberOfItems;
	}

	public void setNumberOfItems(int numberOfItems) {
		this.numberOfItems = numberOfItems;
	}

	public int getLatitude() {
		return latitude;
	}

	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public int getLongitude() {
		return longitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}

	public int getImageId() {
		return imageId;
	}

	public void setImageId(int imageId) {
		this.imageId = imageId;
	}
}
